package com.java2007.hotel.dao;

import com.java2007.hotel.pojo.User;

import java.sql.SQLException;

/**
 * @author Reckeys
 * @version V1.0
 * @date 2021/01/25
 **/
public interface UserDao {
    /**
     * 通过用户名查询用户信息
     * @param userName
     * @return
     */
    User findUser(String userName) throws SQLException;

    /**
     * 添加用户
     * @param user
     * @return
     */
    int addUser(User user) throws SQLException;

    /**
     * 更新用户
     * @param user
     */
    int updateUser(User user) throws SQLException;
}
